.class Lcom/opongo/blogapp/activities/CategoryListActivity$1;
.super Landroid/content/BroadcastReceiver;
.source "CategoryListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/activities/CategoryListActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/activities/CategoryListActivity;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/activities/CategoryListActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity$1;->this$0:Lcom/opongo/blogapp/activities/CategoryListActivity;

    .line 111
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5
    .parameter "c"
    .parameter "i"

    .prologue
    .line 115
    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    .line 116
    .local v1, e:Landroid/os/Bundle;
    sget-boolean v2, Lcom/opongo/blogapp/activities/CategoryListActivity;->DEBUG:Z

    if-eqz v2, :cond_0

    invoke-static {}, Lcom/opongo/blogapp/activities/CategoryListActivity;->access$2()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Push Enable Cat_ID: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "CAT_ID"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "CAT_ENABLE"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 118
    :cond_0
    iget-object v2, p0, Lcom/opongo/blogapp/activities/CategoryListActivity$1;->this$0:Lcom/opongo/blogapp/activities/CategoryListActivity;

    #getter for: Lcom/opongo/blogapp/activities/CategoryListActivity;->show_push_enable:Z
    invoke-static {v2}, Lcom/opongo/blogapp/activities/CategoryListActivity;->access$6(Lcom/opongo/blogapp/activities/CategoryListActivity;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v0, "cat_enable"

    .line 119
    .local v0, column:Ljava/lang/String;
    :goto_0
    iget-object v2, p0, Lcom/opongo/blogapp/activities/CategoryListActivity$1;->this$0:Lcom/opongo/blogapp/activities/CategoryListActivity;

    #getter for: Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;
    invoke-static {v2}, Lcom/opongo/blogapp/activities/CategoryListActivity;->access$1(Lcom/opongo/blogapp/activities/CategoryListActivity;)Lcom/opongo/blogapp/manager/DatabaseManager;

    move-result-object v2

    const-string v3, "CAT_ID"

    invoke-virtual {v1, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v3

    const-string v4, "CAT_ENABLE"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v4

    invoke-virtual {v2, v3, v4, v0}, Lcom/opongo/blogapp/manager/DatabaseManager;->setCatEnable(IZLjava/lang/String;)I

    .line 120
    iget-object v2, p0, Lcom/opongo/blogapp/activities/CategoryListActivity$1;->this$0:Lcom/opongo/blogapp/activities/CategoryListActivity;

    const/4 v3, 0x1

    #setter for: Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_should_update:Z
    invoke-static {v2, v3}, Lcom/opongo/blogapp/activities/CategoryListActivity;->access$7(Lcom/opongo/blogapp/activities/CategoryListActivity;Z)V

    .line 122
    iget-object v2, p0, Lcom/opongo/blogapp/activities/CategoryListActivity$1;->this$0:Lcom/opongo/blogapp/activities/CategoryListActivity;

    #getter for: Lcom/opongo/blogapp/activities/CategoryListActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v2}, Lcom/opongo/blogapp/activities/CategoryListActivity;->access$8(Lcom/opongo/blogapp/activities/CategoryListActivity;)Landroid/database/Cursor;

    move-result-object v2

    invoke-interface {v2}, Landroid/database/Cursor;->requery()Z

    .line 123
    return-void

    .line 118
    .end local v0           #column:Ljava/lang/String;
    :cond_1
    const-string v0, "cat_show_enable"

    goto :goto_0
.end method
